<!-- 删除一行 -->
<script type="text/javascript">
function DelRow(tab1,delbutton1){
    //删除一行
    var shu = 0;
    var delTr = document.all(delbutton1);
    for(var i=0;i<delTr.length;i++){
        if(delTr[i].checked == true){
            shu++;
        }
    }
    if(shu == delTr.length){
        return;
    }else if(shu == 0){
        document.getElementById(tab1).deleteRow(1);
    }else if(shu == 1){
        for(var i=0;i<delTr.length;i++){
            if(delTr[i].checked == true){
                document.getElementById(tab1).deleteRow(i+1);
            }
        }
    }else if(shu > 1){
        for(var a=0;a<shu;a++){
            for(var i=0;i<delTr.length;i++){
                if(delTr[i].checked == true){
                    document.getElementById(tab1).deleteRow(i+1);
                    break;
                }
            }
        }
    }
}
</script>